package com.gdupt.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gdupt.entity.CustomerLoss;
import com.gdupt.mapper.CustomerLossMapper;
import com.gdupt.service.ICustomerLossService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 客户流失 客户流失 服务实现类
 * </p>
 *
 * @author gdupt
 * @since 2018-11-21
 */
@Service
public class CustomerLossServiceImpl extends ServiceImpl<CustomerLossMapper, CustomerLoss> implements ICustomerLossService {

    @Autowired
    private CustomerLossMapper clm;

    @Override
    public List<CustomerLoss> lossPage(IPage page, String search) { return clm.lossPage(page,search); }

    @Override
    public List<CustomerLoss> lossList(IPage page, String name, String mgr) { return clm.lossList(page,name,mgr); }

    @Override
    public List<CustomerLoss> lossAll(IPage page, String name, String mgr, Integer status) { return clm.lossAll(page,name,mgr,status); }


    @Override
    public boolean addRecord() { return clm.addRecord(); }

}
